Completed
Push — master ( 134845...ee7956 )
by
unknown
01:07
created

destroy-files.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
nc 1
dl 0
loc 3
rs 10
c 1
b 0
f 1
nop 1
1
/**
2
 * Created by vedi on 30/10/2016.
3
 */
4
5
'use strict';
6
7
const Sandcage = require('..');
8
9
const sandcage = new Sandcage('[YOUR SANDCAGE API KEY]');
10
const payload = {
11
  files: [
12
    {'reference_id': '[reference_id]'},
13
    {'file_token': '[file_token]'}
14
  ]
15
};
16
const callbackUrl = '';
17
18
sandcage
19
  .destroyFiles(payload, callbackUrl)
20
  .then((result) => {
21
    console.log(result);
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
22
  });